package com.zpphis.mapper;

import com.zpphis.entity.ConstantItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zpp
 * @since 2022-11-22
 */
@Mapper
public interface ConstantItemMapper extends BaseMapper<ConstantItem> {

    @Select("SELECT i.id,i.constant_code `contantCode`,i.constant_name `constantName`,t.constant_type_name `constantType` FROM t_constant_item i INNER JOIN t_constant_type t ON t.id=i.constant_type_id WHERE i.del_mark=1")
    List<Map<String, Object>> listExtend();
}
